package com.sugar.queryinfo.module.business.controller.admin.dataquery.vo;

import com.sugar.queryinfo.framework.common.validation.Mobile;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 数据查询新增/修改 Request VO")
@Data
public class DataQuerySaveReqVO {

    @Schema(description = "校验方式（0.关闭校验 1. 二要素校验 2. 三要素校验）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "校验方式不能为空")
    private Integer validMethod;

    @Schema(description = "查询姓名", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "姓名不能为空")
    private String queryName;

    @Schema(description = "查询身份证号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "身份证号不能为空")
    private String queryIdCard;

    @Schema(description = "查询手机号")
    @Mobile
    private String queryMobile;

    @Schema(description = "查询类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "查询类型不能为空")
    @Size(min = 1, message = "查询类型不能为空")
    private List<String> queryType;
}